<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>完善个人资料</title>
    <script src="../../js/common.js"></script>
    <link rel="stylesheet" href="../../css/common.css">
    <link rel="stylesheet" href="../../css/patient/MyDepartment.css">
    <link rel="stylesheet" href="../../css/patient/personalProfile.css">
</head>

<body>
    <div class="wrapper">
        <div class="content">
            <div class="title">完善个人资料</div>
            <div class='profile'>
                <ul>
                    <li>
                        <input type="text" placeholder="请输入您的姓名">
                    </li>
                    <li>
                        <select name="selecSex" id="">
                            <option value="选择您的性别">选择您的性别</option>
                            <option value="男">男</option>
                            <option value="女">女</option>
                        </select>
                    </li>
                    <li>
                        <input placeholder="请输入您的出生日期" name="" id="birthDate">
                    </li>
                    <li>
                        <input type="text" placeholder="请输入您的联系地址" value='' name="" id="">
                    </li>
                </ul>
                <div class='confirm'>
                    <a href="javascript:;">确认</a>
                </div>
            </div>
        </div>
    </div>
</body>

</html>
<script src="../../js/jquery-1.11.3.min.js"></script>
<script src="../../js/datePicker.js"></script>
<script>
    // 当前时间
    var myDate = new Date();
    var endTime = myDate.getFullYear()+"-"+(myDate.getMonth()+1)+"-"+myDate.getDate();
    var calendar = new datePicker();
    calendar.init({
        'trigger': '#birthDate', /*按钮选择器，用于触发弹出插件*/
        'type': 'date',/*模式：date日期；datetime日期时间；time时间；ym年月；*/
        'minDate': '',/*最小日期*/
        'maxDate': endTime,/*最大日期*/
        'onSubmit': function () {/*确认时触发事件*/
            var theSelectData = calendar.value;
        },
        'onClose': function () {/*取消时触发事件*/
        }
    });
</script>